package com.easyJava.bean;

import com.easyJava.utils.PropertiesUtils;

/**
 * @author ZhangYK
 * @version 8.0
 * @title Constants
 * @description
 * @create 2024/11/14 22:15
 */
public class Constants {
    public static  Boolean IGNORE_TABLE_PREFIX;
    public static  String SUFFIX_BEAN_PARAM;

    static {
        IGNORE_TABLE_PREFIX = Boolean.valueOf(PropertiesUtils.getString("ignore.table.prefix"));
        SUFFIX_BEAN_PARAM = PropertiesUtils.getString("suffix.bean.param");
    }


    public static String[] SQL_DATE_TIME_TYPES = new String[]{"datetime","timestamp"};
    public static String[] SQL_DATE_TYPES = new String[]{"date"};
    public static String[] SQL_DECIMAL_TYPES = new String[]{"decimal","double","float"};
    public static String[] SQL_STRING_TYPES = new String[]{"char","varchar","text","mediumtext","longtext"};
    //int
    public static String[] SQL_INTEGER_TYPES = new String[]{"int","tinyint"};
    //long
    public static String[] SQL_LONG_TYPES = new String[]{"bigint"};
}
